package com.guigu.tms.work.service.impl;

import com.guigu.tms.commons.entity.base.AuthUser;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.tms.commons.entity.work.TaskPickupDispatch;
import com.guigu.tms.work.mapper.AuthUserMapper;
import com.guigu.tms.work.service.IAuthUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户 服务实现类
 * </p>
 *
 * @author zwj
 * @since 2022-10-12
 */
@Service
public class AuthUserServiceImpl extends ServiceImpl<AuthUserMapper, AuthUser> implements IAuthUserService {
            @Autowired
            AuthUserMapper authUserMapper;
            @Override
            public TaskPickupDispatch GetAuthUserAndPutInTaskPickupDispatch(TaskPickupDispatch taskPickupDispatch) {
                AuthUser authUser = authUserMapper.selectById(taskPickupDispatch.getCourierId());
                taskPickupDispatch.setCourier(authUser);
                return taskPickupDispatch;
            }
}
